package lab02.test05;

 public class Cube {
     double length;
     double width;
     double height;

    public Cube() {

    }
    public Cube(double length,double width, double height) {
        length=this.length;
        width=this.width;
        height=this.height;
    }
    public double getVolume(){
        return length*width*height;
    }
    public static void main(String []args){
        Cube clube=new Cube(12,20,10);
        double result=clube.getVolume();
        System.out.println(result);
    }
}